package com.wx.chapter11.homework;


/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/6/14 - 9:28
 */
public class Frock {
    static private int currentNum = 100000;//1.初识的衣服系列号
    private int serialNumber;//4.

    public Frock() {
        serialNumber = getNextNum();//5.将序列号赋值给serialNumber
    }

    static public int getNextNum() {//2.
        currentNum = currentNum + 100;
        return currentNum;
    }

    public static int getCurrentNum() {
        return currentNum;
    }

    public int getSerialNumber() {//4.
        return serialNumber;
    }
}
